using Net;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Message;
using Response;

public class UiMain : MonoSingleton<UiMain> {


    public Button Register;

    protected override void OnStart() {
        RespManager.Start();
        NetClient.Instance.Init("127.0.0.1", 11111);
        Register.onClick.AddListener(SendRegister);
    }


    private void SendRegister() {
        UserRegisterRequest request = new UserRegisterRequest() {
            Username = "1234",
            Password = "123"
        };

        NetClient.Instance.Send(ECode.Register, request);
    }

}
